import gradio as gr


def genrate_story(a, b, c, d, e, f):
    return f'{a} {b} {c} {d} {e} {f}'


demo = gr.Interface(
    genrate_story,
    [
        gr.Slider(2, 20, value=4, label='Count', info='Choose between 2 and 20'),
        gr.Dropdown(['cat', 'dog', 'bird'], label='Animal', info='Animal here'),
        gr.CheckboxGroup(['usa', 'japan', 'China'], label='Country', info='choose country'),
        gr.Radio(['park', 'zoo', 'road']),
        gr.Dropdown(['ran', 'swam', 'ate', 'slept'], value='swam', multiselect=True),
        gr.Checkbox(label='Morning', info='Did they do it in the morning'),
    ],
    'text',
    examples=[
        [2, 'cat', ['Japan', 'Parkstan'], 'park', ['ate', 'swam'], True],
        [4, 'dog', ['Japan'], 'zoo', ['ate', 'swam'], False],
        [18, 'bird', ['USA', 'Pakistan'], 'road', ['ran'], False],
        [8, 'cat', ['Pakistan'], 'zoo', ['ate'], True],
    ]
)

if __name__ == '__main__':
    demo.launch()
